<?php
header("Content-type:text/html;charset=utf-8");
//引数据库
$db = require 'db.php';

//加载函数库
require 'functions.php';

//操作的动作
$action = isset($_GET['a'])?$_GET['a']:'index';

$controller = "controller/".$action.'.php';

if(is_file($controller))
{
	require $controller;
}else{
	echo "非法请求";
}
